﻿
namespace Pfz.Drawing.Wpf
{
    /// <summary>
    /// Enumeration used to know which combination of colors must be used.
    /// </summary>
    public enum ColorCombineMode
    {
        /// <summary>
        /// The new color simple replaces the old color. Transparency is not considered.
        /// </summary>
        Replace,

        /// <summary>
        /// The color is combined with the old color, and the old alpha is kept.
        /// </summary>
        CombineIn,

        /// <summary>
        /// The new color is considered to be over the old color. So, a 50% red over a 50% green will end-up 75% red and 25% green, with 25% of transparency.
        /// </summary>
        CombineOver
    }
}
